<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="Keywords" content="{$SEO['keyword']}" />
<meta name="Description" content="{$SEO['description']}" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<script type="text/javascript" src="{THEME_PATH}js/jquery-1.7.2.min.js"></script>
<link rel="stylesheet" href="{JS_PATH}/artDialog/skins/default.css">
<link rel="stylesheet" type="text/css" href="{THEME_PATH}style/appStyle2.css?v=1.1" />
<link rel="stylesheet" type="text/css" href="{THEME_PATH}style/appStyle.css?v=1.1" />
<link rel="stylesheet" href="{THEME_PATH}style/jason.css?v=1" />
<script type="text/javascript" src="{THEME_PATH}js/Validform_v5.3.2_min.js"></script>
<script src="{JS_PATH}artDialog/artDialog.js" type="text/javascript"></script>
<script src="{JS_PATH}artDialog/plugins/iframeTools.js" type="text/javascript"></script>
<script src="{THEME_PATH}js/artTemplate/artTemplate.js" type="text/javascript"></script> 
<script src="{THEME_PATH}js/artTemplate/artTemplate-plugin.js" type="text/javascript"></script>
<script type="text/javascript">
var ajaxagencyurl ="";
var obj_title="{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}";
var obj_right="";
var obj_rightlink="javascript:void(0);";
</script>
<script src="{THEME_PATH}js/jason.js"></script>
<link rel="stylesheet" type="text/css" href="{THEME_PATH}style/user.css?v=1.1" />
<link rel="stylesheet" type="text/css" href="{THEME_PATH}style/user_publice.css?v=1.1" />
</head>
<body>
<div class="app_user <?php if ($this->userinfo['user_type'] == 1){ ?> app_userGeRen <?php } ?>"> <img src="<?php if ($this->userinfo['ico']): ?><?php echo $this->userinfo['ico'] ?><?php else: ?>{THEME_PATH}img/head.png<?php endif ?>" />
  <div class="app_userTitle">下午好！<?php echo $this->userinfo['username'];?>
    <p><?php echo utype_name($this->userinfo['user_type']);?></p>
    <a href="{U('User/User/userinfo')}"><i>&#xe60a</i></a>
    <ul class="app_userContenList">
      <li><a href="{U('User/User/userinfo')}"><i>&#xe607</i></a> </li>
      <li><a href="{U('User/User/userinfo')}"><i>&#xe608</i></a> </li>
      <li><a href="{U('User/User/userinfo')}"><i>&#xe606</i></a> </li>
      <li><a href="{U('User/User/bank')}"><i>&#xe609</i></a> </li>
    </ul>
  </div>
</div>
<?php if ($this->userinfo['user_type'] == 2){ ?>
<div class="app_userZiJin">
  <p> 账户余额：<span>{MONUNIT}<?php echo $this->userinfo['user_money'];?></span> </p>
</div>
<?php }else{ ?>
<ul class="app_userList">
  <li class="li1">
    <p>今日赠送积分</p>
    <p>{$day_points}</p>
    <p>￥<?php echo  $this->userinfo['pay_points']?>（历史总计）</p>
  </li>
  <li class="li3">
    <p>当前拥有赠送权</p>
    <p><?php echo  $this->o_count['allrebate']?></p>
    <P><?php echo  $this->o_count['returnrebate']?>(历史总计)</P>
  </li>
</ul>
<?php } ?>
<?php if ($this->userinfo['user_type'] == 2){ ?>
<ul class="app_userList">
  <li class="li1">
    <p>今日做单数量</p>
     <p>{count($day_order)}</p>
  </li>
  <li class="li2">
    <p>今日做单金额</p>
    <p><?php echo  $day_order_money==""?"0.00":$day_order_money?>元</p>
  </li>
</ul>
<div class="app_userZuoDan"> <a href="{U('Order/orderadd')}" style="margin-bottom:5px;">商家做单</a></div>

<a class="app_usershoucang app_uiNav7" href="/index.php?m=user&c=order&a=orderaddjilu">订单记录</a>
<?php } ?>
<div class="app_userContentTitle"> 个人账户 </div>
<a href="{U('Coupons/money')}" class="app_usershoucang app_uiNav1"> 资金流水 </a> <a href="{U('Pay/init')}" class="app_usershoucang app_uiNav2"> 账户充值 </a><a href="{U('Pay/withdraw')}" class="app_usershoucang app_uiNav2"> 账户提现 </a>
<div class="app_userContentTitle"> 账户中心 </div>
<a class="app_usershoucang app_uiNav3" href="/index.php?m=user&c=order&a=orderdown"> 我的消费 </a> <a class="app_usershoucang app_uiNav4" href="{U('Coupons/score')}"> 我的积分 </a> <a class="app_usershoucang app_uiNav5" href="{U('Collect/lists')}"> 我的收藏 </a> <a href="{U('Goods/Cart/index')}" class="app_usershoucang app_uiNav6">我的购物车</a> <a class="app_exitLogin" href="{U('User/Public/logout')}"> 退出登录 </a> {template footer}